beforeMediaFilesDownloaded

Arguments

eobject

An object with the following properties:

arrayarray

An array containing information about each file to be downloaded.

Description

Fires before media files are downloaded.

Discussion

The beforeMediaFilesDownload event is triggered before any media files (photos, video, audio recordings) are download from a server, or Amazon S3 to the device for storage in the device file system when data are pull-synchronized. If this function returns false, the files will not be downloaded to the device. The 'afterMediaFilesDownload' event will still fire, and its e.aborted property will be set to true.

If there are no media files in the List data, the onNoMediaFilesToFetch event will be triggered.

See Also